projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811c4c6
)
GtkButton: Use GtkLabel:xalign
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 30 Sep 2014 03:55:13 +0000
(23:55 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 30 Sep 2014 03:57:13 +0000
(23:57 -0400)
gtk/gtkbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbutton.c
b/gtk/gtkbutton.c
index 207bcbcacaf244e4de2672b5e84847e9d5f58f87..3795e7cf4dc5bec120b1fcfb0f718c66894a6ce6 100644
(file)
--- a/
gtk/gtkbutton.c
+++ b/
gtk/gtkbutton.c
@@
-737,7
+737,9
@@
maybe_set_alignment (GtkButton *button,
return;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- if (GTK_IS_MISC (widget))
+ if (GTK_IS_LABEL (widget))
+ g_object_set (widget, "xalign", priv->xalign, "yalign", priv->yalign, NULL);
+ else if (GTK_IS_MISC (widget))
gtk_misc_set_alignment (GTK_MISC (widget), priv->xalign, priv->yalign);
else if (GTK_IS_ALIGNMENT (widget))
g_object_set (widget, "xalign", priv->xalign, "yalign", priv->yalign, NULL);